package com.demo2.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by
 *
 * @author touni
 * @date 2019/4/8
 * @time 11:00
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/{name}")
    public String showName(@PathVariable String name){
        int i = 10 /0;

        return name;

    }



}
